<div class="user-r-title clearfix">
    <div class="common-title f-l">
        <a href="javascript:void(0)" class="field">{$data.page_title}</a>
    </div>
</div>
<div class="user-r-content clearfix j-ajax-page">
    <div class="search clearfix" ms-important="vm-search">
        <div class="search-list">
            <span>时间</span>
            <input type="text" ms-duplex="@search_data.begin_time" id="begin_time" placeholder="{$data.begin_time}"> <span>-</span> <input type="text" ms-duplex="@search_data.end_time" id="end_time" placeholder="{$data.end_time}">
        </div>
		<div class="search-list">
            <span>游戏名称</span>
            <input type="text" ms-duplex="@search_data.game_name" placeholder="">
        </div>
		<div class="search-list">
            <span>会员ID</span>
            <input type="text" ms-duplex="@search_data.id" placeholder="">
        </div>
		
        <div class="search-list">
            <span>机构编号</span>
            <input type="text" ms-duplex="@search_data.login_name" placeholder="">
        </div>
        <div class="search-list">
            <span>业务员ID</span>
            <input type="text" ms-duplex="@search_data.bm_qrcode_id" placeholder="">
        </div>
        <a href="javascript:void(0)" class="btn btn-primary btn-circle" ms-click="search">搜索</a>
    </div>
    <div class="ajax-block">
    	<table class="uc-table">
            <tr style="border-bottom:none">
                <td colspan="10" style="text-align:left;padding-left:15px;">汇总：<span style="padding-right:10px;">获胜 {$data.total.sum_win} </span><span style="padding-right:10px;">失败 {$data.total.sum_fail} </span><span style="padding-right:10px;">会员手续费 {$data.total.sum_user_gain} </span></td>
            </tr>
        </table>
        <table class="uc-table">
            <thead>
                <tr>
                    <th>时间</th>
                    <th>会员ID</th>
                    <th>游戏名称</th>
                    <th>会员下注</th>
                    <th>会员获胜</th>
                    <th>会员失败</th>
                    <th>会员游戏手续费</th>
                    <th>所属{$bm_two}编号</th>
                    <th>所属代理商编号</th>
					<th>所属业务员ID</th>
                </tr>
            </thead>
            <tbody>
            	{if $data.list}
					{if  $type eq  1}
						<tr>
		                    <td>{function name=to_date v=$data.list.create_time}</td>
		                    <td>{$data.list.id}</td>
		                    <td>{$data.list.game_name}</td>
		                    <td>{$data.list.sum_bet}</td>
		                    <td>{$data.list.sum_win}</td>
		                    <td>{$data.list.sum_fail}</td>
		                    <td>{$data.list.user_gain}</td>
		                    <td>{$data.list.bm_pid_login_name}</td>
		                    <td>{$data.list.bm_promoter_login_name}</td>
							<td>{$data.list.bm_qrcode_id}</td>
		                </tr>
					{else}
		                {foreach from="$data.list" item="l_item" }
		                <tr>
		                    <td>{function name=to_date v=$l_item.create_time}</td>
		                    <td>{$l_item.id}</td>
		                    <td>{$l_item.game_name}</td>
		                    <td>{$l_item.sum_bet}</td>
		                    <td>{$l_item.sum_win}</td>
		                    <td>{$l_item.sum_fail}</td>
		                    <td>{$l_item.user_gain}</td>
		                    <td>{$l_item.bm_pid_login_name}</td>
		                    <td>{$l_item.bm_promoter_login_name}</td>
							<td>{$l_item.bm_qrcode_id}</td>
		                </tr>
						{/foreach}
					{/if}
                {else}
	                <tr>
	                    <td colspan="10">
	                        <span>暂无数据</span>
	                    </td>
	                </tr>
                {/if}
            </tbody>
        </table>
        <div class="m-page clearfix">
            <div class="m-page-con">
                {$data.page}
            </div>
        </div>
    </div>
</div>
